package com.yl.common.network

import com.yl.common.bean.DailyModel


/**
 * Created by stew on 6/12/22.
 * mail: stewforani@gmail.com
 */
class BaseResp<T> {
    //    var errorCode: Int = -1
//    var errorMsg: String = ""
    //    var data: T? = null
    var issueList: List<DailyModel.Issue>? = null
    var newestIssueType: String = ""
    var nextPageUrl: String = ""
    var nextPublishTime: Long = 0


    var responseState: ResponseState? = null

    enum class ResponseState {
        REQUEST_START,
        REQUEST_SUCCESS,
        REQUEST_FAILED,
        REQUEST_ERROR
    }

    override fun toString(): String {
        return "BaseResp(issueList=$issueList, newestIssueType='$newestIssueType', nextPageUrl='$nextPageUrl', nextPublishTime=$nextPublishTime, responseState=$responseState)"
    }

}